//app.js
var constant = require("constant.js")

App({
  onLaunch: function () {
    this.globalData = {
      appLoaded: false
    }
  },

  onShow: function(options) {
    var that = this;
    wx.request({
      url: constant.get("apiHost") + '/weapp/contents/app',
      header: {
        'content-type': 'application/json'
      },
      method: 'POST',
      success(res) {
        that.globalData.appLoaded = true
      }
    })
  }
})
